﻿using Microsoft.Extensions.Configuration;

namespace Domain
{
    /// <summary>
    /// 读取配置文件
    /// </summary>
    public static class AppConfigurtaionServices
    {
        public  static IConfiguration Configuration { get; set; }
        //static AppConfigurtaionServices()
        //{
        //    //ReloadOnChange = true 当appsettings.json被修改时重新加载            
        //    Configuration = new ConfigurationBuilder()
        //    .Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true })
        //    .Build();
        //}
    }
}
